import type {
  ArticleDetailData,
  CommentReslut,
  DataReslut,
} from '@/types/healthEncyclopedia';
import { http } from '@/utils/request';
// 文章详情
export const getPatientKnowledgeAPI = (id: string) =>
  http<ArticleDetailData>(`patient/knowledge/${id}`, 'GET');
// 发送评论
export const putPatientCommentAPI = (comment: string, id: string) =>
  http<DataReslut<CommentReslut>>('/patient/comment', 'PUT', { comment, id });
